Commit graph

27 commits

Author SHA1 Message Date
Matt Wiebe
3512206d48 phpcbf fixes 2023-07-19 20:39:58 -05:00
Matthias Pfefferle
f4c8264e9a move function to Shortcode class 2023-07-18 08:20:09 +02:00
Matthias Pfefferle
964ceee869 fix tests 2023-07-17 17:23:13 +02:00
Matthias Pfefferle
d7e9d54063 Checks if item (WP_Post) is "public", a supported post type and not password protected. 2023-07-17 15:25:30 +02:00
Matthias Pfefferle
27dd8217e8
Merge branch 'master' into fix/sanitization 2023-05-23 19:20:23 +02:00
Matthias Pfefferle
d91eaeae72 phpdoc 2023-05-23 11:26:12 +02:00
Matthias Pfefferle
3d1a0af6cb moved strip style/script 2023-05-23 11:13:17 +02:00
Matthias Pfefferle
677d507fe9 Revorked "sanitize output"
This reverts commit 77873d12b3.
2023-05-23 11:10:05 +02:00
Matthias Pfefferle
77873d12b3 sanitize output 2023-05-11 14:20:35 +02:00
Matthias Pfefferle
17b66cb23d implement cleanup_followers and update_followers 2023-05-10 14:18:56 +02:00
Matthias Pfefferle
2274bd0074 check if post is password protected 2023-02-27 08:15:02 +01:00
Matthias Pfefferle
72f12de96a remove scripts later in the queue 2023-02-20 21:18:03 +01:00
Matthias Pfefferle
73ae7a5d75 fix content creation
and added tests
2023-02-20 18:08:10 +01:00
Matthias Pfefferle
b0149739fa remove line breaks 2023-02-20 08:58:12 +01:00
Matthias Pfefferle
873066115d strip style and script elements 2023-02-20 08:55:23 +01:00
Matthias Pfefferle
bc8cb19c5d add an option to disable content filters 2023-01-31 18:43:11 +01:00
Matthias Pfefferle
a55dc90379 fix length 2023-01-23 21:13:50 +01:00
Matthias Pfefferle
c93f02615d always escape output 2023-01-23 20:59:39 +01:00
Matthias Pfefferle
fe4e0961c8 I would keep it simple for now 2023-01-23 20:47:02 +01:00
Matthias Pfefferle
d4b88f228d mastodon sadly does not support target on links
See https://github.com/mastodon/mastodon/blob/main/lib/sanitize_ext/sanitize_config.rb#L77
2023-01-23 20:24:03 +01:00
Matthias Pfefferle
3666f89f6e with shortcode_atts there is no need to check if attr is set 2023-01-23 20:11:18 +01:00
Matthias Pfefferle
75cc35c66e I think it is enough to check if $post or $post_id is set 2023-01-23 20:08:06 +01:00
Matthias Pfefferle
aec21a489c coding standards 2023-01-23 19:43:34 +01:00
Greg
71f3a47589 Converted shortcode class to static.
And added options for shortlink/permalink type.
2023-01-23 11:59:13 -05:00
Greg
3a82891948 Minor cleanups. 2023-01-22 11:27:13 -05:00
Greg
740a73b00f Add size attribute to the image shortcode. 2023-01-22 01:25:50 -05:00
Greg
b5fa16b464 Move the shortcodes to their own class. 2023-01-22 01:13:46 -05:00