__group__ ticket summary owner component _version priority severity milestone type _status workflow _created modified _description _reporter Yesterday 41109 WordPress Core Js File Seems Infected Emoji normal normal Awaiting Review defect (bug) new reporter-feedback 2017-06-21T04:44:54Z 2017-06-21T08:33:12Z "Hi I have running latest version of wordpress while website loads up and I got some error in the console. After checking the Console for the error I found error and encrypted code is in the core js file - https://raw.githubusercontent.com/WordPress/WordPress/master/wp-includes/js/wp-emoji-release.min.js Kindly check the screenshot URL for the error. Accordingly to it might be the malware or I would like to know what exactly encrypted in the JS code. http://imgur.com/a/CNcbr Looking forward to hear back from you. Thanks Deepanshu kapoor" 756dk 2 Days Ago 41100 Cannot delete categories, plugins, themes when using Firefox 54 on Ubuntu 17.04 Administration 4.8 normal normal Awaiting Review defect (bug) new reporter-feedback 2017-06-20T11:29:54Z 2017-06-20T12:11:47Z "Hi, Using Firefox 54.0+build3-0ubuntu0.17.04.1 I am unable to delete categories, plugins, or themes using wp-admin. I click delete and nothing happens. This bug does not occur on Chromium. Thanks! Adrienne" freudianslit 3 Days Ago 39594 Multisite Upgrade Network - cURL Attempting Port 443 on HTTP Networks and Sites 4.7.1 normal normal Awaiting Review defect (bug) new reporter-feedback 2017-01-15T19:31:31Z 2017-06-19T15:37:18Z "The ""Upgrade Network"" utility fails to perform it's tasks correctly in `4.7.1`. cURL is connecting to each subsite through HTTP, however, the port it's attempting to use is 443 and not 80. All sites in this network are HTTP, so everything should be done through port 80. '''Here's how I discovered this:''' Update from `4.7` -> `4.7.1` through the admin interface. Immediately there after, Upgrade Network. {{{ Warning! Problem updating http://domain.com. Your server may not be able to connect to sites running on it. Error message: cURL error 7: Failed to connect to domain.com port 443: Connection refused }}} I'm aware of connections refused on port 443. (Firewall rules) The problem is: It shouldn't even be attempting to connect to port 443. All the sites in the network are HTTP. I've tested the ""Upgrade Network"" utility on `4.7` using another copy of the SAME exact network on the SAME exact server. It upgrades all the sites just fine. " michael.ecklund 3 Days Ago 41021 Text widget does not show Title field or TinyMCE editor Widgets 4.8 normal normal 4.8.1 defect (bug) new reporter-feedback 2017-06-13T08:48:06Z 2017-06-19T08:10:02Z "Hello, Further to the update towards the version of WP 4.8 I had a concern(marigold) with the widgets text which do not seem to support(bear) the function(office) "" flex ""... Can you tell it to me more? I am handed on to the version 4.7.5 and my widgets works again correctly (Saddened for the translation Reverso, I do not speak English...) I join(contact) you an image of widgets text (version 4.8) in version blocking. Have a good day. J-P Bourdet" aholstrya 4-7 Days Ago 40731 locate_template() performance improvement Themes normal normal Awaiting Review enhancement new reporter-feedback 2017-05-11T12:11:51Z 2017-06-18T13:47:42Z "If the theme uses massive the *_template functions it can come to a slow performance because the the files will be searched again and again. We can improve the performance if we use a static cache like this: {{{ function locate_template($template_names, $load = false, $require_once = true ) { static $template_cache; $located = ''; foreach ( (array) $template_names as $template_name ) { if ( !$template_name ) continue; if ( $template_cache[$template_name] ) { $located = $template_cache[$template_name]; break; } if ( isset( $template_cache[$template_name] ) && ! $template_cache[$template_name] ) continue; if ( file_exists(STYLESHEETPATH . '/' . $template_name)) { $located = STYLESHEETPATH . '/' . $template_name; $template_cache[$template_name] = $located; break; } elseif ( file_exists(TEMPLATEPATH . '/' . $template_name) ) { $located = TEMPLATEPATH . '/' . $template_name; $template_cache[$template_name] = $located; break; } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) { $located = ABSPATH . WPINC . '/theme-compat/' . $template_name; $template_cache[$template_name] = $located; break; } $template_cache[$template_name] = false; } if ( $load && '' != $located ) load_template( $located, $require_once ); return $located; } }}}" danielhuesken 4-7 Days Ago 41089 Video Player Full screen issue without play External Libraries 4.8 normal normal Awaiting Review defect (bug) new reporter-feedback 2017-06-17T21:16:42Z 2017-06-18T10:59:55Z "''After embedding mp4 video on page and without playing'', I clicked on full screen button. Full screen does not work normally. '''It takes size inside browser width'''. Sometimes looks weird. [http://plugins.gallery/full-screen-bug/] [[BR]] ''After playing video'', clicked on full-screen button. Then video gets actual whole screen size.[[BR]] First I saw issue while working with WPLMS theme. To confirm where is bug I switched theme, updated all plugins and WordPress, issue not resolved.[[BR]] I tested video with theme twenty seventeen, issue exist there also.[[BR]] I have attached screenshots below. '''Twenty seventeen Theme''' [[Image(http://plugins.gallery/wp-content/uploads/2017/06/player-normal1.jpg)]] [[Image(http://plugins.gallery/wp-content/uploads/2017/06/player-after-fullscreen1-without-play.jpg)]] '''WPLMS theme''' [[Image(http://plugins.gallery/wp-content/uploads/2017/06/player-normal.jpg)]] [[Image(http://plugins.gallery/wp-content/uploads/2017/06/player-after-fullscreen.jpg)]] To try with only HTML code, Took mediaelement folder from wp-includes and created index.html file to check issue, same issue happens. I have paste code below.[[BR]] I think there might be issue in wp-mediaelement.min.css OR wp-mediaelement.min.js[[BR]] {{{ Untitled Document
}}} " mkrndmane 4-7 Days Ago 40964 Wordpress 4.8 Pasting into editor functionality changed Editor 4.8 normal normal Awaiting Review defect (bug) new reporter-feedback 2017-06-09T05:43:45Z 2017-06-17T03:40:12Z "Hi there, With 4.8 the paste functionality seems to have changed in the visual editor. When I paste a list of items into the 4.8 visual editor from a text editor it now strips all ""line breaks"" and I end up with one big paragraph. I can still paste the list in text view and switch back to visual view and it keeps the line breaks. This has changed in this new version. I do this process as a daily activity. " AngusMcKinnon Last Week 35776 Installation pages do not have forms.css enqueued bassgang Upgrade/Install normal normal Future Release defect (bug) assigned reporter-feedback 2016-02-08T15:07:45Z 2017-06-15T13:51:41Z iseulde Last Week 40872 Add $item argument to start_lvl (nav menu walker) Menus 4.7.5 normal normal Awaiting Review feature request new reporter-feedback 2017-05-26T20:08:47Z 2017-06-13T01:46:02Z "Would it be possible to add the $item argument inside the start_lvl function? Other than the usual dropdown menu, I'd also like to build megamenus and to make that possible, I need to use different ul tags (along with some JavaScript components). These custom ul tags will be different based on the parent li ((array) $item->classes) and $depth. " mireillesan Last Week 40994 Latest update broke full justification Editor 4.8 normal normal Awaiting Review defect (bug) new reporter-feedback 2017-06-10T16:16:51Z 2017-06-12T04:30:29Z I just applied the latest WordPress update (4.8.x I believe) and full justification of text has been broken. I used to be able to hand edit in the tag, but now it is just ignored. seasoned_geek Last Week 40827 WP Regular post categories bug also affects Woocommerce products categories Menus 4.7.5 normal normal Awaiting Review defect (bug) new reporter-feedback 2017-05-20T11:12:19Z 2017-06-12T02:24:35Z "HI, i have found a bug that is causing me lot of frustration when doing menus using categories. There is a bug with the categories nesting/child categories on the menu create page. When having many sub-nesting/child categories when the category list has over 50 nested categories and the category small menu auto creates a second page then it messes up the categories nesting. This is hard to explain. On this 1st image, is when some sub-nesting/child categories fit on one page. this is good. Note:I had to remove the menu box height to show what i mean. [[Image(https://image.ibb.co/eTgfav/nesting_on_one_page.jpg)]] but when a sub-nesting/child categories have too many sub-nesting/child (about 50) that gets chopped on 2 or more pages then the tree of the categories then the tree bugs. [[Image(https://image.ibb.co/jjwfav/bug.jpg)]] This is Tab/page:2 It brakes the tree here too plus it adds the rest of the sub-nesting/child categories at the bottom of the page why? it should be at the top as its the continuing of tab/page 1 of the categories. [[Image(https://image.ibb.co/hDiUJF/page_2.jpg)]] This bugs also affects Woocommerce products categories as we sometimes need many sub products categories. i 1st found this bug when doing a menu with Woocommerce products categories i opened a bug report here: [https://github.com/woocommerce/woocommerce/issues/13040] here or some screen shots of that bug ticket. woocommerce Product Categories tree.jpg: [[Image(https://image.ibb.co/hNZmyF/6db82992_e7fd_11e6_8090_5631505dd16d.jpg)]] [[Image(https://image.ibb.co/ckkFsa/762fb7fc_e7fd_11e6_81a2_7e00aa1b8432.jpg)]] [[Image(https://image.ibb.co/fyVFsa/a496612c_e7fd_11e6_8c69_028e8ea6891d.jpg)]] After talking with some Woocommerce devs they told me this was a WP core bug. i note ""It looks like the problem has to do with the nesting / child categories. The second page starts with the categories that are top-level and their children. Then at the end it has the miscellaneous categories whose parents are on page 1."" "" But it's not something we should be fixing as it's generated and rendered by WP core (all hierarchical categories output in the same way). We don't control that code."" ""If that's broken because of WP core's handling (looks like it is), yeah I think we should raise it."" So this is why i am opening this ticket with WP. '''BUG:''' How to replicate this bug with WP. create a root Categorie with 2 or more Parent Categories in it. then add say 50 subcategories in a parent so on the create menu page the category menu box splits the subcategories on a second page. '''Note:''' it needs to split the subcategories. if the subcategories fits on one page it will not work) EXP: {{{ root cat 1 root cat 2 root cat 3 - Parent Lv 1 -- Parent lv 2 --- Parent lv 3 - category 01 --- (ADD 50 other category in this parent) }}} " raykaii Last Week 40989 Image Widget not working in wp 4.8 Widgets 4.8 normal normal Awaiting Review defect (bug) new reporter-feedback 2017-06-10T09:19:32Z 2017-06-11T11:47:26Z Not working image widget link in WordPress 4.8 imranaliweb Last Week 40996 Category's won't load Taxonomy 4.8 normal normal Awaiting Review defect (bug) new reporter-feedback 2017-06-10T17:41:45Z 2017-06-10T19:34:25Z "In version 4.8 of WordPress, whenever you press one of the categories you get taken to an empty page on the website. [[Image(http://i.imgur.com/vOWIOE0.png)]]" BlijdorperB Yesterday 22176 Cache the results of the posts_request_ids query Query 3.4.2 normal normal Future Release enhancement new needs-unit-tests 2012-10-12T14:59:37Z 2017-06-22T20:07:22Z We are to the point where we could replace the advanced post cache plugin with something in core that is far simpler. We're most of the way there since introducing the split query. And with #22024 we have a good way of doing per-blog cache invalidation for classes of objects, which would be needed by this. Leveraging wp_cache_get_multi() as suggested in #22174 would provide a complete replacement for the adv post cache plugin. http://plugins.svn.wordpress.org/advanced-caching/trunk/advanced-caching.php ryan Yesterday 40669 Proper query cache invalidation on queries meta queries Options, Meta APIs normal normal Awaiting Review defect (bug) new needs-unit-tests 2017-05-04T19:21:14Z 2017-06-22T19:59:45Z "Currently, terms and comments have query caching and meta query support. Queries are cached using the use the last_changed in the object cache group. Query caches are invalidated (busted) when the last_changed value is changed, when a term / comment is changed / created. However, when meta on these objects are changed / deleted, query are not invalidated. Example. - Run a comment query with a meta query foo=bar. Get 4 results. - add_comment_meta to a new comment. - Run a comment query with a meta query foo=bar. It will return cached result of 4, even through the result should be 5. This is an issue, if plugin developers, use the meta functions to add meta to an object, queries should still invalidate. " spacedmonkey Yesterday 36437 wp_delete_attachment causes warning Media 2.0 normal normal Awaiting Review defect (bug) new needs-unit-tests 2016-04-07T06:24:34Z 2017-06-22T18:25:12Z wp_delete_attachment assumes that attachments uses category and post_tag taxonomies. This causes a warning in wp_delete_object_term_relationships when post type attachment is not using category or post_tag taxonomies. thorbrink Yesterday 40661 WP_Term_Query->parse_query() needs filter like 'get_terms' Taxonomy normal normal Awaiting Review enhancement new needs-unit-tests 2017-05-04T10:28:28Z 2017-06-22T17:50:09Z "The new class/method WP_Term_Query->parse_query() does not provide a filter like the old function get_terms() does. Using WP_Term_Query directly has thus different functionality from using the old wp_terms function. Using a plugin like: https://wordpress.org/support/plugin/custom-taxonomy-order-ne/ with a custom term_order field and sorting based on that, gives the default sort based on name. Adding a filter to the method like get_terms, provides backwards compatibility for plugin and theme authors, that are switching to WP_Term_Query directly. This filter gives options to apply a custom order to the list of terms. Reference on support forum: https://wordpress.org/support/topic/doesnt-reorder-when-using-wp_term_query/ If adding a filter is somehow not wanted by core devs, then I will have to answer to add this filter manually to the code when support requests are coming. To be clear, I would consider that a valid response." mpol Yesterday 39800 current_item_{parent|ancestor} Not set for Post Type Archive Items Menus 4.7.2 normal normal Future Release defect (bug) new needs-unit-tests 2017-02-06T18:42:18Z 2017-06-22T15:35:58Z "'''To reproduce:''' Add a Post Type Archive link as a submenu item. '''Expected Result:''' Parent `$item` object in menu should have `$item->current_item_parent` as `true`. '''Current Result:'' `var_dump` of the parent menu's `$item` in the `Walker_Nav_Menu->start_el()` shows `current_item_parent` as `false`. Interestingly, `$item->menu_item_parent` of the current menu item (the post type archive) is set to the correct menu item object ID. --------- Note, in the past there have been quite a few reports of the Post Type Archive link and it's parents not receiving the correct CSS classes. This has been fixed, but I wonder if the fix was only a bandaid and missed the underlying issue. I'll keep investigating and report back if I can figure out a potential solution." mrwweb Yesterday 40889 REST API: New terms creation with meta causes PHP Notice REST API 4.7 normal normal Awaiting Review defect (bug) new needs-unit-tests 2017-05-30T23:29:06Z 2017-06-21T19:18:03Z "Creating new terms with the REST API works fine, as long as there is no meta attached: {{{ POST https://localhost:8080/wp-json/wp/v2/categories X-WP-Nonce: 1234567890 Content-Type: application/json {""name"":""A new category"",""description"":""This is a new category."",""meta"":{""custom_meta"":""Custom Meta Value""}} -- response -- 403 Forbidden
Notice: Undefined property: WP_Error::$taxonomy in /var/www/wp47/wp-includes/capabilities.php on line 282
{""code"":""rest_cannot_update"",""message"":""Sorry, you are not allowed to edit the custom_meta custom field."",""data"":{""key"":""custom_meta"",""status"":403}} }}} For the record, here's what happens as far as I can tell. Probably more detailled than what's really needed, but there's two different issues here so I'd rather be precise. 1. `WP_REST_Terms_Controller::create_item()` calls `WP_REST_Meta_Fields::update_value()` with two arguments: `$request['meta']`, which is what we want, and `$request['id']`, which at this point is `null`, because we are creating a new term, not editing an existing one. 2. `WP_REST_Meta_Fields::update_value()` loops through the registered meta keys and calls `WP_REST_Meta_Fields::update_meta_value()` or `WP_REST_Meta_Fields::update_multi_meta_value()`. 3. Because `WP_REST_Terms_Controller::create_item()` casted as integer an ID that does not exist, both meta_value update methods get a `$object_id` = `0`, and use that value to check for permission to edit meta. 4. Now it's capabilities fairy: `current_user_can()` calls `WP_User::has_cap()` which calls `map_meta_cap()` which checks for the term existence with a simple boolean test on the result of `get_term()`. 5. But, because of `$object_id` value being `0`, `get_term()` returns a `WP_Error` instance, the check mentionned in 4. fails, and we get the ""Undefined property"" notice that end up in the REST API request response. TL;DR: Two issues here: 1. `WP_REST_Terms_Controller::create_item()` passes an unexisting value to the meta_value upate methods, indirectly triggering a bug in `map_meta_cap()`; 2. `map_meta_cap()` does not break as it should if `get_term()` returns an error." caercam Yesterday 41111 WP-API JS Client: Add a helper to get model or collection by route adamsilverstein REST API 4.7 normal normal 4.9 enhancement assigned needs-unit-tests 2017-06-21T09:51:02Z 2017-06-21T09:51:19Z "In the process of adding page/custom post type support to Gutenberg, the need arose to identify the models based on their route - the code passes the route from PHP to JavaScript, and the JavaScript needs to know which model to use. See [https://github.com/WordPress/gutenberg/pull/1276 this pull requst] for additional details. We should add helpers to the client to easily find a model or collection based on its route, something like `getModelByRoute` and `getCollectionByRoute` - each would search thru the constructed models/collections and return the matching object, or `false` if none was found. We should also add unit tests to verify the functions work as expected." adamsilverstein 2 Days Ago 24142 Zero value for posts_per_page value in wp_query custom instance and for 'Blog pages show at most' option Query normal normal Future Release defect (bug) reopened needs-unit-tests 2013-04-20T09:04:16Z 2017-06-20T22:31:09Z "To show no posts if the posts_per_page value is 0. Currently for custom instances of wp_query, if the value is 0 then this is changed with the value from posts_per_page option from the database. ""get_options( 'posts_per_page' )"" For home page if we set value 0 on the settings page, in wp-admin/options-reading.php, after the saves are changed, this value is changed to 1. I think for both cases if the posts per page value is 0 then no posts should not display. " alexvorn2 3 Days Ago 21603 Add ability to delete multiple menu items Menus 3.4.1 normal normal Awaiting Review enhancement new needs-unit-tests 2012-08-15T21:45:29Z 2017-06-19T19:19:27Z "When working with a menu in the Admin, if you need to delete a lot of entries it's really slow because you have to expand each entry, then click delete, then wait for the refresh to do it all over again. If we had an X next to the down arrow for each menu item, it would be much faster/easier to delete them. Thanks!" wphound 4-7 Days Ago 41055 WP-API JS Client: Improve support for meta adamsilverstein General 4.7 normal normal 4.9 enhancement assigned needs-unit-tests 2017-06-15T08:08:42Z 2017-06-16T12:02:17Z "The wp.api JavaScript client support for meta needs some attention: * Meta helper isn't available for comments, terms and users * Meta pieces haven't been updated for the new-style meta model The `getMeta` helper should work correctly for all object types that support meta. We should also consider adding a matching `setMeta` helper. See https://github.com/WP-API/client-js/issues/168." adamsilverstein Last Week 41064 Registered and last edited dates on new sites should be identical Networks and Sites normal normal Awaiting Review defect (bug) new needs-unit-tests 2017-06-15T12:15:52Z 2017-06-15T17:24:52Z "In testing #40035, I discovered that depending on how long the creation process takes for a new site, the last updated and registered date could be different by up to several seconds. Ideally, this should always be identical when a new site is created. Besides it potentially being confusing to a user, I have two use cases for this. 1. It is impossible to write a test for #40035 without these dates being guaranteed the same. 2. A good way to identify sites that were abandoned after creation would be to compare the registered and last updated dates. If these are not guaranteed to be the same this would become more difficult." desrosj Last Week 40035 Site registered date uses different time zone from last updated Networks and Sites 4.7.2 normal normal Awaiting Review defect (bug) new needs-unit-tests 2017-03-05T08:56:15Z 2017-06-15T12:37:06Z "'''The problem''' In a multisite, when a new site is created, the registered date and time is stored using the time zone setting for the main network site, but the last updated date and time uses the GMT time. This inconsistency is confusing and also can lead to last updated time that is before the registered time, which is impossible. '''How to reproduce?''' 1. Using WordPress 4.7.2 and a multisite installation log-in as Super Admin. 2. Go to the General settings of the main network site and change your time zone to UTC+3 (or anything different from UTC). 3. Go to Network admin -> Sites -> Add New, and create a new site. 4. Click Edit Site after it is created and see that the registered date and time is different from the last updated date and time (they should be the same). '''How to fix?''' The problem is on line 1330 in the file /wp-includes/ms-functions.php. Currently the line is like this: {{{#!php $result = $wpdb->insert( $wpdb->blogs, array('site_id' => $site_id, 'domain' => $domain, 'path' => $path, 'registered' => current_time('mysql')) ); }}} Needs to be like this: {{{#!php $result = $wpdb->insert( $wpdb->blogs, array('site_id' => $site_id, 'domain' => $domain, 'path' => $path, 'registered' => current_time('mysql', true)) ); }}} " nnikolov Last Week 41010 wp_get_object_terms() returns duplicate terms if more than one taxonomy is given in args Taxonomy 4.8 normal normal 4.9 defect (bug) new needs-unit-tests 2017-06-12T13:34:32Z 2017-06-15T11:38:37Z "// works correct $list = wp_get_object_terms([ 104627 ], [ 'produkte' ]); print_r($list); // returns all terms for produkte and herkunft and merges all terms related to the post $list = wp_get_object_terms([ 104627 ], [ 'produkte', 'herkunft' ]); print_r($list); Problem is unset( $taxonomies[ $index ] ) followed by $terms = array_merge( $terms, get_terms( $args ) ); foreach ( $taxonomies as $index => $taxonomy ) {} iterates for all given taxonomies and leaves an empty $taxonomies array. get_terms() with an empty array for $args['taxonomy'] returns ""all"" related terms and merges with the terms of the previews loop run. Michael" mranner Last Week 20771 esc_url() instead of esc_html() in wp_nonce_url() johnbillion* Formatting 3.4 normal normal Future Release enhancement accepted needs-unit-tests 2012-05-29T06:21:37Z 2017-06-13T22:06:09Z "The `wp_nonce_url()` function currently uses `esc_html()` in its output, which doesn't really seem to be the appropriate escaping function since it's generating a URL. Attached patch changes the output to use `esc_url()`" jkudish Last Week 36196 Users without a role are not being displayed Users 4.4 normal normal Future Release defect (bug) new needs-unit-tests 2016-03-10T16:27:32Z 2017-06-13T16:11:08Z "Users without a role are not displayed on the site user page. (in my case http://localhost/wordpress1/wordpress/wp-admin/users.php). But the invisible user are still being counted (e.g. i should have '4 items' although no user is visible). But on the network user page the users are visible. (in my case http://localhost/wordpress1/wordpress/wp-admin/network/users.php). I can reproduce this bug with PHP code: {{{#!php $wpUser = get_user_by('id', 35); $wpUser->set_role(''); }}} and with this SQL-Query: DELETE FROM `wordpress1`.`wp_usermeta` WHERE `user_id`='35' AND `meta_key`='wp_capabilities'; My only workaround is to use a non existing role: {{{#!php $wpUser = get_user_by('id', 35); $wpUser->set_role('anonymous'); }}} The strange thing is that this bug only exists on multi site installations. Normal single site installations work fine." tobi823 Last Week 39153 Bug in wp_html_split with unclosed PHP tag (or HTML tag <) Formatting 4.6.1 normal normal Awaiting Review defect (bug) new needs-unit-tests 2016-12-07T17:48:32Z 2017-06-10T14:12:48Z "The problem is in the ''shortcodes.php'' file, but exact problem is function ''wp_html_spli''t in ''formatting.php'' This bug is completely described in this question forum thread. https://wordpress.org/support/topic/bug-in-wp_html_split-with-unclosed-php-tag/ Consider following post code. {{{ Some amount of useless text [code-highlight line-numbers=""table"" linenostart=""53"" highlight-lines=""1,3,8"" style=""native"" lang=""html+php"" pyg-id=""1"" ] checkstyle [code-highlight style=""native"" lang=""perl"" pyg-id=""2"" ] (?:s+)(?:(/*([^*]|[rn]|(*+([^*/]|[rn])))**+/)|(//(?!.*(CHECKSTYLE)).*)) [/code-highlight] }}} Here dump after this line {{{ $textarr = wp_html_split( $content ); var_dump($textarr); exit; }}} {{{ array(25) { [0]=> string(0) """" [1]=> string(3) ""

"" [2]=> string(28) ""Some amount of useless text "" [3]=> string(11) """" [4]=> string(0) """" [5]=> string(4) ""

"" [6]=> string(1) "" "" [7]=> string(3) ""

"" [8]=> string(121) ""[code-highlight line-numbers=""table"" linenostart=""53"" highlight-lines=""1,3,8"" style=""native"" lang=""html+php"" pyg-id=""1"" ]"" [9]=> string(6) ""
"" [10]=> string(1) "" "" [11]=> string(464) """" [12]=> string(10) ""checkstyle"" [13]=> string(9) """" [14]=> string(0) """" [15]=> string(4) ""

"" [16]=> string(56) "" [code-highlight style=""native"" lang=""perl"" pyg-id=""2"" ]"" [17]=> string(6) ""
"" [18]=> string(72) "" (?:s+)(?:(/*([^*]|[rn]|(*+([^*/]|[rn])))**+/)|(//(?!.*(CHECKSTYLE)).*))"" [19]=> string(6) ""
"" [20]=> string(19) "" [/code-highlight] "" [21]=> string(3) ""

"" [22]=> string(15) ""Some Text Again"" [23]=> string(4) ""

"" [24]=> string(1) "" "" } }}} As you can see one shortcode was not splitted, and here the problem. If php closing tag is present (?>) than everything works fine. Problematic regex provider {{{#!php is found. . '-(?!->)' // Dash not followed by end of comment. . '[^\-]*+' // Consume non-dashes. . ')*+' // Loop possessively. . '(?:-->)?'; // End of comment. If not found, match all input. $cdata = '!\[CDATA\[' // Start of comment, after the <. . '[^\]]*+' // Consume non-]. . '(?:' // Unroll the loop: Consume everything until ]]> is found. . '](?!]>)' // One ] not followed by end of comment. . '[^\]]*+' // Consume non-]. . ')*+' // Loop possessively. . '(?:]]>)?'; // End of comment. If not found, match all input. $escaped = '(?=' // Is the element escaped? . '!--' . '|' . '!\[CDATA\[' . ')' . '(?(?=!-)' // If yes, which type? . $comments . '|' . $cdata . ')'; $regex = '/(' // Capture the entire match. . '<' // Find start of element. . '(?' // Conditional expression follows. . $escaped // Find end of escaped element. . '|' // ... else ... . '[^>]*>?' // Find end of normal element. . ')' . ')/'; } return $regex; } }}} Without any doubts this case should be included in regex. " crosp Last Week 37752 Detail docs for embed_html, embed_content and embed_content_meta Embeds 4.4 normal normal Awaiting Review enhancement new needs-docs 2016-08-20T17:39:07Z 2017-06-15T13:50:05Z "I was trying to find the right action to customize the output of embed post and I found hard to understand which action I should use and how to use it in my plugin between. I first found that doc: https://developer.wordpress.org/reference/hooks/embed_html/ '''Possible improvement''' 1. Give details about what this filter actually filters (only the