WordPress.org

Making WordPress.org


Ignore:
Timestamp:
01/29/2016 07:48:45 PM (6 years ago)
Author:
drewapicture
Message:

DevHub: Introduce a new template tag, get_private_access_message(), which generates a message for standalone functions or hooks marked with a private @access tag in their respective Docblocks.

If the Handbook plugin is available, more specifically if the WPorg_Handbook_Callout_Boxes class is available, the message markup is generated as an 'alert'-type callout box. Otherwise, fall-back markup and styles are applied to the message.

If an alternative function is referenced via an @see tag in the function or hook DocBlock, make a good-faith effort to try to link to the reference page for that element as an alternative within the access message text.

See #1498.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss

    r2284 r2431  
    10201020            font-style: italic;
    10211021        }
     1022        .private-access {
     1023            margin-top: 30px;
     1024            padding: 20px 20px 10px;
     1025            border: 1px solid #ffb900;
     1026            background-color: #fff8e5;
     1027        }
     1028        .callout {
     1029            margin-top: 30px;
     1030        }
    10221031    }
    10231032
Note: See TracChangeset for help on using the changeset viewer.